<!DOCTYPE div PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php
include "../jerimum/classes/bd.php";
include("../jerimum/classes/adsolanuncios.php");
include("../jerimum/classes/convenios.php"); 

$where = " WHERE ativo='1' ";
$limit = " ";
$order = " ORDER BY id DESC ";

$_class = new adsolanuncios();
$_classFornecedores = new convenios();

$dados = $_class->lista($where, $order, $limit);

 ?>
<html>
<head>
<meta name="charset" content="UTF-8" />
<style type="text/css">
body{
	font-size: 12px;
}
div.interna {
	style ="border: 1px solid RED;
	margin: 2px;
	float: left;
	width: 173px;
	height: 115px;
	margin-left: 5px;
}
div.valor {
	color: red;
}
</style>
</head>
<body>

<div>
<p><strong>AdSol+</strong> Publicidade oferece:</p>
</br>
<?php 

$ver = 1;
foreach($dados as $adsol){
	if($ver<4){
		
				$_classFornecedoresTemp = new convenios();
				$_classFornecedoresTemp->id = $adsol['idconvenio'];
				$_classFornecedoresTemp = $_classFornecedoresTemp->pega($_classFornecedoresTemp->id);
	
	?>
	
<div class="interna">
<table cellspacing="0" cellpadding="0" border="0" class="adc"
	style="font-size: 12px;">
	<tbody>
		<tr>
			<td valign="middle"><a  
				title="<?= $_classFornecedoresTemp["titulo"];?>" 
				target="_blank"
				onmouseover="ss(&quot;&quot;,&quot;aw12&quot;)"
				onmousedown="st(&quot;aw12&quot;)"
				onfocus="ss(&quot;&quot;,&quot;aw12&quot;)"
				onclick="ha(&quot;aw12&quot;)" id="aw12"
				href="http://www.solmais.com.br/data/counter.php?urldestiny=<?= $_classFornecedoresTemp["urlreal"];?>&ssid=<?= $adsol["id"];?>"
				class="adt"><span><?= $_classFornecedoresTemp["titulo"];?></span></a>

			<div class="adu"><span onmousedown="st(this.id.substr(1))"
				onclick="ga(this,event)" id="uaw12" class="adus">
				<a target="_blank"
					href="http://www.solmais.com.br/data/counter.php?urldestiny=<?= $_classFornecedoresTemp["urlreal"];?>&ssid=<?= $adsol["id"];?>">
					<?= $_classFornecedoresTemp["urlapres"];?>
				</a></span></div>
			<div class="adb"> <?= $adsol["descricao"];?> </div>
			<div class="valor"><?= $adsol["descricaovalor"];?> </div>
			
			</td>
		</tr>
	</tbody>
</table>
</div>
	
	
	<?php 
	
		$ver = $ver + 1;
		
		}
}

?>

</div>
</body>
</html>
